package com.hp.shiro.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.hp.shiro.model.LogInfo;
import com.hp.shiro.service.LogInfoService;


@RestController
@RequestMapping(value="/log")
public class LogInfoController {
	
	@Autowired
	private LogInfoService logInfoService;
	
	@GetMapping(value="/queryLogInfo")
	public List<LogInfo> queryLogInfo(@RequestParam String account, @RequestParam String startDate, @RequestParam String endDate){
		return logInfoService.queryLogInfo(account, startDate, endDate);
	}
}
